package bgu.anproc.registery;

import java.util.Iterator;
import java.util.LinkedList;

public class GlobalRegistration {

    public static Iterator<RegisteredItemDescriptor> descriptors() {
        LinkedList<RegisteredItemDescriptor> result = new LinkedList<>();

        @foreach{s : singletones}
        result.add(new SingletonItemDescriptor().setDescription("@{s.description}").setItemClass("@{s.itemClassName}").setIconPath("@{s.iconPath}").setName("@{s.name}"));
        @end{}

        return result.iterator();
    }
}
